package com.quartzd.core.aspect;

import com.quartzd.entity.JobInfo;
import com.quartzd.service.QuartzInfoService;

/**
 * 描述：切面抽象类
 *
 * @author huxuehao
 **/
public abstract class QuartzAspect {
    private final QuartzInfoService quartzStatusService;
    public QuartzAspect(QuartzInfoService quartzStatusService) {
        this.quartzStatusService = quartzStatusService;
    }

    public void saveStatus(JobInfo jobStatus) {
        quartzStatusService.insertOrUpdate(jobStatus);
    }
}
